/*
 ------------------------------------------------------------------------------
 Copyright (C) 2013 Eternal Games.

 This file is part of the GLQuake source code.

 The GLQuake source code is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or (at your
 option) any later version.

 The GLQuake source code is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 more details.

 You should have received a copy of the GNU General Public License along with
 the GLQuake source code; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 ------------------------------------------------------------------------------
*/


//
// huffman.h - huffman compressor/decompressor of message data
//


#ifndef __HUFFMAN_H__
#define __HUFFMAN_H__


/*
 ==============================================================================

 Huffman Coding:

 Handles lossless compression and decompression of message data.

 ==============================================================================
*/

// Initializes the Huffman compressor/decompressor
void			Huff_Init ();

// Compresses the given data
int				Huff_Compress (const byte *in, byte *out, int size);

// Decompresses the given data
int				Huff_Decompress (const byte *in, byte *out, int size);


#endif	// __HUFFMAN_H__